﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

namespace WCrawler.TestPages
{
    public partial class frmTestUserControl : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Panel pnlCommand = (Panel)ucForumControl.FindControl("pnlCommand");
                pnlCommand.Visible = false;
                Panel pnlSearch = (Panel)ucForumControl.FindControl("pnlSearch");
                pnlSearch.Visible = false;
                GridView gridViewForums = (GridView)ucForumControl.FindControl("gridViewForums");
                CommandField cmdField = (CommandField)gridViewForums.Columns[0];
                //cmdField.ShowSelectButton = false;
                //cmdField.ShowEditButton = false;
                cmdField.ShowDeleteButton = false;
                //CommandField cmdField = new CommandField();
                //cmdField.ButtonType = ButtonType.Link;
                //cmdField.ShowSelectButton = true;
                //cmdField.ShowEditButton = true;
                //gridViewForums.Columns.Insert(0, cmdField);
                //gridViewForums.DataBind();
                //Control ucForum = Page.LoadControl(@"~\Controls\ucForum.ascx");
                //HtmlGenericControl gel = new HtmlGenericControl("div");
                //gel.Controls.Add(ucForum);
                //Body.Controls.Add(gel);
            }
        }


    }
}